package net.marktruran.decorators;

import net.marktruran.components.Weapon;

/**
 * The Flame enchantment causes 5HP of fire damage when you hit an opponent.
 *
 * @author Mark Truran <me@marktruran.net> 
 */
public class Flame extends Enchantment {
    
    /**
     * Builds a new Flame enchantment object. 
     * 
     * @param weapon The weapon we want to enchant
     */
    public Flame(Weapon weapon) {
        this.weapon = weapon;
    }

    @Override
    public void damage() {
        weapon.damage();
        System.out.println("Weapon causes 5hp fire damage");
    }
}